﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace comm.objst
{
    public interface ILinearTreeNode
    {
        string Name { get; set; }
        string Parent { get; set; }
    }

    [Serializable]
    public class LinearTreeNode : ILinearTreeNode
    {
        private string _name = null;
        public string Name
        {
            get
            {
                if (_name == null)
                {
                    _name = "";
                }
                return _name;
            }
            set { _name = value; }
        }

        private string _parent = null;
        public string Parent
        {
            get
            {
                if (_parent == null)
                {
                    _parent = "";
                }
                return _parent;
            }
            set { _parent = value; }
        }
    }
}
